<template>
	<view>
		<view v-for="(item ,index) in subscribeOrderList" :index="index" :key="index">
			<uni-card :title="item.id" :sub-title="item.money.toString()" :extra="item.createTime" @click="onClick">
				<text class="uni-body">
				{{item.subName}}_{{item.typeName}}_{{item.remark}}_费用：{{item.money}}
				</text>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				subscribeOrderList: []
			}
		},
		onShow() {
			this.getSubscribeOrderList();
		},
		methods: {
			getSubscribeOrderList(){
				let uid = uni.getStorageSync("uid")
				this.apis.listSubOrderByUserId({userId:uid}).then(res => {
					this.subscribeOrderList = res
				})
			}
			
		}
	}
</script>

<style lang="scss">
	.bottom-btn{
		position: fixed;
		bottom: 0%;
		width: 100%;
		
	}
</style>
